package com.ruoyi.workflow.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程定义信息对象 bus_bpmn_info
 *
 * @author shier
 * @date 2022-11-14
 */
@ToString
@Getter
@Setter
@TableName("bus_bpmn_info")
public class BpmnInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long   id;
    private String bpmnLabel;
    private String bpmnType;
    private String processDefinitionKey;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date   deployTime;
    private Long   version;
    private String info;

    /** 完整的文件名(包含后缀) */
    @TableField(exist = false)
    private String fileName;

    /** 流程部署ID */
    private String deploymentId;
}
